

export class TextInfo{
    markType:string='-1'
    markOutline:number=-1
    markOutlineNum:string=''
    whiteSpaceLineNum:number=0
}



export function getQuestInfo(html){
    var ti:TextInfo
    if(html == null || html==undefined ||html.length==0)return ti;
    var el = document.createElement( 'mark' );
    el.innerHTML = html;
    var root = el.children[0]
    var markType = root.getAttribute('markType');
    if(markType)ti.markType=markType;

    var markOutline = root.getAttribute('markOutline');
    if(markOutline)ti.markOutline=parseInt(markOutline);

    var markOutlineNum = root.getAttribute('markOutlineNum');
    if(markOutlineNum)ti.markOutlineNum=markOutlineNum;

    var whiteSpaceLineNum = root.getAttribute('whiteSpaceLineNum');
    if(whiteSpaceLineNum)ti.whiteSpaceLineNum=parseInt(whiteSpaceLineNum);
    return ti

}
